package com.work1;

public class Student {
    private String name; //姓名
    private int code;  //标号
    private double score; //分数

    public Student() {
    }

    public Student(String name, int code, double score) {
        this.name = name;
        this.code = code;
        this.score = score;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }




    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", code=" + code +
                ", score=" + score +
                '}';
    }
}

